<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- {{}}  模版解析 -->
        <!-- 
        {{ str }}
        {{ arr }}
        {{ obj }} -->
        
    </div>


    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        new Vue({
            el: "#app",
            // 定义数据(状态)
            data: {
                str: "字符串",
                arr: [1, 2, 3, 4],
                obj: {
                    name: "张三",
                    age: 20
                },
                num: 50
            }
        })
    </script>
</body>

</html>